// +----------------------------------------------------------------------
// | User: DaMing
// +----------------------------------------------------------------------
// | Email: 3228985941@qq.com
// +----------------------------------------------------------------------
// | Date: 2022
// +----------------------------------------------------------------------

// index控制器
var IndexDao = require("../dao/IndexDao");

/**
 * index控制器
 */
module.exports = {
  /**
   * 跟路由方法
   * @param {*} req 
   * @param {*} res 
   */
  async index(req, res) {
    let data = await IndexDao.getIndex();
    res.send(data);
  }

}